package com.nondo.dean.order.mapper;

import com.nondo.dean.common.mybatis.Table;
import com.nondo.dean.order.domain.TransferRecord;
import com.nondo.dean.order.domain.TransferRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

@Table("transfer_record")
@Mapper
public interface TransferRecordMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @SelectProvider(type=TransferRecordSqlProvider.class, method="countByExample")
    long countByExample(TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @DeleteProvider(type=TransferRecordSqlProvider.class, method="deleteByExample")
    int deleteByExample(TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @Delete({
        "delete from transfer_record",
        "where id = #{id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @Insert({
        "insert into transfer_record (id, name, ",
        "bankname, bank_account, ",
        "sap_bank_subject, received_date, ",
        "detail_ids, total_amount, ",
        "create_by, create_date, ",
        "update_by, update_date, ",
        "remarks, del_flag, detail_error)",
        "values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, ",
        "#{bankname,jdbcType=VARCHAR}, #{bankAccount,jdbcType=VARCHAR}, ",
        "#{sapBankSubject,jdbcType=VARCHAR}, #{receivedDate,jdbcType=VARCHAR}, ",
        "#{detailIds,jdbcType=VARCHAR}, #{totalAmount,jdbcType=VARCHAR}, ",
        "#{createBy,jdbcType=BIGINT}, #{createDate,jdbcType=TIMESTAMP}, ",
        "#{updateBy,jdbcType=BIGINT}, #{updateDate,jdbcType=TIMESTAMP}, ",
        "#{remarks,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR}, #{detailError,jdbcType=LONGVARCHAR})"
    })
    int insert(TransferRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @InsertProvider(type=TransferRecordSqlProvider.class, method="insertSelective")
    int insertSelective(TransferRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @SelectProvider(type=TransferRecordSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bankname", property="bankname", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_account", property="bankAccount", jdbcType=JdbcType.VARCHAR),
        @Result(column="sap_bank_subject", property="sapBankSubject", jdbcType=JdbcType.VARCHAR),
        @Result(column="received_date", property="receivedDate", jdbcType=JdbcType.VARCHAR),
        @Result(column="detail_ids", property="detailIds", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_amount", property="totalAmount", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR),
        @Result(column="detail_error", property="detailError", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<TransferRecord> selectByExampleWithBLOBsWithRowbounds(TransferRecordExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @SelectProvider(type=TransferRecordSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bankname", property="bankname", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_account", property="bankAccount", jdbcType=JdbcType.VARCHAR),
        @Result(column="sap_bank_subject", property="sapBankSubject", jdbcType=JdbcType.VARCHAR),
        @Result(column="received_date", property="receivedDate", jdbcType=JdbcType.VARCHAR),
        @Result(column="detail_ids", property="detailIds", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_amount", property="totalAmount", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR),
        @Result(column="detail_error", property="detailError", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<TransferRecord> selectByExampleWithBLOBs(TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @SelectProvider(type=TransferRecordSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bankname", property="bankname", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_account", property="bankAccount", jdbcType=JdbcType.VARCHAR),
        @Result(column="sap_bank_subject", property="sapBankSubject", jdbcType=JdbcType.VARCHAR),
        @Result(column="received_date", property="receivedDate", jdbcType=JdbcType.VARCHAR),
        @Result(column="detail_ids", property="detailIds", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_amount", property="totalAmount", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR)
    })
    List<TransferRecord> selectByExampleWithRowbounds(TransferRecordExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @SelectProvider(type=TransferRecordSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bankname", property="bankname", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_account", property="bankAccount", jdbcType=JdbcType.VARCHAR),
        @Result(column="sap_bank_subject", property="sapBankSubject", jdbcType=JdbcType.VARCHAR),
        @Result(column="received_date", property="receivedDate", jdbcType=JdbcType.VARCHAR),
        @Result(column="detail_ids", property="detailIds", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_amount", property="totalAmount", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR)
    })
    List<TransferRecord> selectByExample(TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @Select({
        "select",
        "id, name, bankname, bank_account, sap_bank_subject, received_date, detail_ids, ",
        "total_amount, create_by, create_date, update_by, update_date, remarks, del_flag, ",
        "detail_error",
        "from transfer_record",
        "where id = #{id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="bankname", property="bankname", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_account", property="bankAccount", jdbcType=JdbcType.VARCHAR),
        @Result(column="sap_bank_subject", property="sapBankSubject", jdbcType=JdbcType.VARCHAR),
        @Result(column="received_date", property="receivedDate", jdbcType=JdbcType.VARCHAR),
        @Result(column="detail_ids", property="detailIds", jdbcType=JdbcType.VARCHAR),
        @Result(column="total_amount", property="totalAmount", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_by", property="createBy", jdbcType=JdbcType.BIGINT),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_by", property="updateBy", jdbcType=JdbcType.BIGINT),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
        @Result(column="del_flag", property="delFlag", jdbcType=JdbcType.CHAR),
        @Result(column="detail_error", property="detailError", jdbcType=JdbcType.LONGVARCHAR)
    })
    TransferRecord selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @UpdateProvider(type=TransferRecordSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") TransferRecord record, @Param("example") TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @UpdateProvider(type=TransferRecordSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") TransferRecord record, @Param("example") TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @UpdateProvider(type=TransferRecordSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") TransferRecord record, @Param("example") TransferRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @UpdateProvider(type=TransferRecordSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(TransferRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @Update({
        "update transfer_record",
        "set name = #{name,jdbcType=VARCHAR},",
          "bankname = #{bankname,jdbcType=VARCHAR},",
          "bank_account = #{bankAccount,jdbcType=VARCHAR},",
          "sap_bank_subject = #{sapBankSubject,jdbcType=VARCHAR},",
          "received_date = #{receivedDate,jdbcType=VARCHAR},",
          "detail_ids = #{detailIds,jdbcType=VARCHAR},",
          "total_amount = #{totalAmount,jdbcType=VARCHAR},",
          "create_by = #{createBy,jdbcType=BIGINT},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_by = #{updateBy,jdbcType=BIGINT},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP},",
          "remarks = #{remarks,jdbcType=VARCHAR},",
          "del_flag = #{delFlag,jdbcType=CHAR},",
          "detail_error = #{detailError,jdbcType=LONGVARCHAR}",
        "where id = #{id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKeyWithBLOBs(TransferRecord record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table transfer_record
     *
     * @mbg.generated Thu May 31 17:31:52 CST 2018
     */
    @Update({
        "update transfer_record",
        "set name = #{name,jdbcType=VARCHAR},",
          "bankname = #{bankname,jdbcType=VARCHAR},",
          "bank_account = #{bankAccount,jdbcType=VARCHAR},",
          "sap_bank_subject = #{sapBankSubject,jdbcType=VARCHAR},",
          "received_date = #{receivedDate,jdbcType=VARCHAR},",
          "detail_ids = #{detailIds,jdbcType=VARCHAR},",
          "total_amount = #{totalAmount,jdbcType=VARCHAR},",
          "create_by = #{createBy,jdbcType=BIGINT},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_by = #{updateBy,jdbcType=BIGINT},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP},",
          "remarks = #{remarks,jdbcType=VARCHAR},",
          "del_flag = #{delFlag,jdbcType=CHAR}",
        "where id = #{id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(TransferRecord record);
}